package com.exam.api.modules.system.vo;

import com.exam.api.modules.system.domain.TblUser;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 用户VO
 *
 * @author bcheng
 */
@Schema(description = "用户VO")
@EqualsAndHashCode(callSuper = true)
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LoginUserInfo extends TblUser {

    /**
     * 角色id列表
     */
    @Schema(description = "角色列表")
    private List<Long> roleIds;
    /**
     * 角色列表
     */
    private List<UserRoleVO> userRoles;

    /**
     * 部门名称
     */
    @Schema(description = "部门名称")
    private String deptName;

    /**
     * 父级部门id
     */
    @Schema(description = "父级部门id")
    private Long parentDeptId;
}
